package com.dlcb.csd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author:薛亮亮
 * @Date 2020/12/22 17:55
 * @Discription:页面跳转配置
 */
@Controller
public class IndexController {
    @RequestMapping("/")
    public String showIndex(){
        return "pagehome/index";
    }

    @RequestMapping("/index")
    public String index(){
        return "pagehome/index";
    }

    @RequestMapping("/login")
    public String showLogin(){
        return "pagehome/login";
    }

    @RequestMapping("/register")
    public String showRegist(){
        return "pagehome/register";
    }


    @RequestMapping("/shortrent")
    public String showShortrent(){
        return "shortRent/shortrent";
    }

    /**
     * 查看注册成功界面
     * @return
     */
    @RequestMapping("/loginsuccess")
    public String loginSuccess(){
        return "pagehome/loginsuccess";
    }

    /**
     * 显示后台主页面
     */
    @RequestMapping("/admin")
    public String showAdminIndex(){

        return "admin/admin";
    }

    /**
     * 显示后台用户清单
     * @return
     */
    @RequestMapping("/userList")
    public String showUserList(){

        return "admin/userList";
    }

}
